package com.carmeth.geo;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class InfoTab extends TabActivity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        setContentView(R.layout.infotab);
        
        TabHost th=getTabHost();
        TabHost.TabSpec spec;
        
        Intent i=new Intent().setClass(this, CasaDetail.class);
        spec=th.newTabSpec("detail").setIndicator("Detalle",getResources().getDrawable(R.drawable.info)).setContent(i);
        i.putExtra("casa", getIntent().getSerializableExtra("casa"));
        th.addTab(spec);
        
        i=new Intent().setClass(this, CasaUbicacion.class);
        spec=th.newTabSpec("ubicacion").setIndicator("Ubicación",getResources().getDrawable(R.drawable.map)).setContent(i);
        i.putExtra("casa", getIntent().getSerializableExtra("casa"));
        th.addTab(spec);
        
        th.setCurrentTab(0);
	}
}
